package com.gao.frame.study.shop.config.module.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

@Data
@TableName(value = "order_detail")
public class OrderDetail {
    /**
     * 自增主键ID,订单详情表ID
     */
     @TableId(value = "order_detail_id", type = IdType.AUTO)
    private Integer orderDetailId;

    /**
     * 订单表ID
     */
    @TableField(value = "order_id")
    private Integer orderId;

    /**
     * 订单商品ID
     */
    @TableField(value = "product_id")
    private Integer productId;

    /**
     * 商品名称
     */
    @TableField(value = "product_name")
    private String productName;

    /**
     * 购买商品数量
     */
    @TableField(value = "product_cnt")
    private Integer productCnt;

    /**
     * 购买商品单价
     */
    @TableField(value = "product_price")
    private BigDecimal productPrice;

    /**
     * 平均成本价格
     */
    @TableField(value = "average_cost")
    private BigDecimal averageCost;

    /**
     * 商品重量
     */
    @TableField(value = "weight")
    private Double weight;

    /**
     * 优惠分摊金额
     */
    @TableField(value = "fee_money")
    private BigDecimal feeMoney;

    /**
     * 仓库ID
     */
    @TableField(value = "w_id")
    private Integer wId;

    /**
     * 最后修改时间
     */
    @TableField(value = "modified_time")
    private Date modifiedTime;

    public static final String COL_ORDER_ID = "order_id";

    public static final String COL_PRODUCT_ID = "product_id";

    public static final String COL_PRODUCT_NAME = "product_name";

    public static final String COL_PRODUCT_CNT = "product_cnt";

    public static final String COL_PRODUCT_PRICE = "product_price";

    public static final String COL_AVERAGE_COST = "average_cost";

    public static final String COL_WEIGHT = "weight";

    public static final String COL_FEE_MONEY = "fee_money";

    public static final String COL_W_ID = "w_id";

    public static final String COL_MODIFIED_TIME = "modified_time";
}